﻿<%@ Page Title="" Language="C#" MasterPageFile="../Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>发送消息</h2>
<%--    <div class="sec">
      // 最新5条消息
      <% var latestMessages = ViewData["latestMessages"] as IList<SingleMessage>; %>
      <% if (latestMessages != null && latestMessages.Count > 0)
         {
            foreach(var msg in latestMessages)
            {
                Html.RenderPartial("_messageItem", msg);
            }
         }
         else
         {%>
           <span class="ignore">没有收到新的消息了。</span>
         <%}
      %>
    </div>
    <div>
      // 已发出的消息
      <% var sentMessages = ViewData["sentMessages"] as IList<SingleMessage>; %>
      <% if (sentMessages != null && sentMessages.Count > 0)
         {%>
            foreach(var msg in sentMessages)
            {
                Html.RenderPartial("_messageItem", msg);
            }
         }
         <%}
         else
         {%>
           <span class="ignore">没有收到新的消息了。</span>
         <%}
      %>
    </div>--%>

</asp:Content>
